package practice;

public class Student extends Person{
		private double class1,class2,class3,class4,class5;

		public double getClass1() {
			return class1;
		}

		public void setClass1(double class1) {
			System.out.println("Class1成绩为："+class1);
			this.class1 = class1;
		}

		public double getClass2() {
			return class2;
		}

		public void setClass2(double class2) {
			System.out.println("Class2成绩为："+class2);
			this.class2 = class2;
		}

		public double getClass3() {
			return class3;
		}

		public void setClass3(double class3) {
			System.out.println("Class3成绩为："+class3);
			this.class3 = class3;
		}

		public double getClass4() {
			return class4;
		}

		public void setClass4(double class4) {
			System.out.println("Class4成绩为："+class4);
			this.class4 = class4;
		}

		public double getClass5() {
			return class5;
		}

		public void setClass5(double class5) {
			System.out.println("Class5成绩为："+class5);
			this.class5 = class5;
		}
		public double Avg() {
			return (class1+class2+class3+class4+class5)/5;
		}
}
